<?php

namespace app\admin\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class MissionSchedule extends Model
{
  


   protected $json = ['others'];
    protected $jsonAssoc = true;


   public function userInfo(){
    	return $this->hasone("user",'u_id',"u_id");
    }


    /**
     * 获取全部状态
     * @var [type]
     */
    public static function  getStatus($int=0){
    	$res =  [     
    		1=>'交稿',    		 
            2=>'被采纳',            
    		3=>'合格',    		 
    	];
    	return $int>0 ? $res[$int]:$res;
    }
}
